<?php
namespace core\lib;

class model extends \PDO{
	public function __construct()
	{
		$dsn = 'mysql:host=localhost;dbname=test';
		$username = 'root';
		$passwd = '123456';
		try
		{
			parent::__construct($dsn.$username,$passwd);
		}
		catch
		{
			test($e->getMessage());
		} 
	}
}